package com.itzhihao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

@TableName(value = "glgl_store")
@Data
public class Store extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "store_id",type = IdType.ASSIGN_ID)
    private Long Id;

    @TableField(value = "store_time")
    private String storeTime;

    private String name;

    @TableField(value = "subimages")
    private String subImages;

    private Long userId;

    @TableField(value = "mainimage")
    private String mainImage;

    private Double score;

    @TableField(value = "day_sale")
    private Integer daySale;

    @TableField(value = "month_sale")
    private Integer monthSale;

    @TableField(value = "year_sale")
    private Integer yearSale;

    @TableField(value = "day_income")
    private Double dayIncome;

    @TableField(value = "month_income")
    private Double monthIncome;

    @TableField(value = "year_income")
    private Double yearIncome;

    private String notice;

    private String security;

    private Integer status;

    private String cause;

    private Double longitude;

    private Double latitude;

    @TableField(value = "is_deleted")
    private Integer isDeleted;

    @TableField(value = "pos_name")
    private String posName;

    @TableField(value = "pos_address")
    private String posAddress;

    @TableField(exist = false)
    private Double distance;
}
